﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>API文档</title>
</head>
<body>
    <div id="output"></div>

    <script src="~/js/showdown.min.js"></script>
    <script>
        var converter = new showdown.Converter(),
            html = converter.makeHtml(`@Html.Raw(ViewBag.Text.ToString().Replace("`","\\`"))`);
        document.getElementById('output').innerHTML = html;
    </script>
</body>
</html>